# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class WebsiteItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


class DomainInfoOriginalOverItem(scrapy.Item):
    domainName = scrapy.Field()


class DomainInfoOriginalItem(scrapy.Item):
    domainName = scrapy.Field()
    domainInfo = scrapy.Field()


class FanProjectItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


class CountryASNItem(scrapy.Item):
    countryName = scrapy.Field()
    countryHref = scrapy.Field()
    countryCode = scrapy.Field()
    allocatedASNs = scrapy.Field()
    announcedASNs = scrapy.Field()
    asnIpv4Number = scrapy.Field()
    asnIpv6Number = scrapy.Field()


class ASNItem(scrapy.Item):
    countryCode = scrapy.Field()

    asnNum = scrapy.Field()
    asnNumHref = scrapy.Field()
    asnName = scrapy.Field()
    ipv4NumIps = scrapy.Field()
    ipv6NumIps = scrapy.Field()


class ASNContentItem(scrapy.Item):
    asnNum = scrapy.Field()

    asName = scrapy.Field()
    orgName = scrapy.Field()
    registryRegion = scrapy.Field()
    ipv4Prefixes = scrapy.Field()
    ipv6Prefixes = scrapy.Field()
    ipv4NumIps = scrapy.Field()
    ipv6NumIps = scrapy.Field()
    cidr = scrapy.Field()
    cidrHref = scrapy.Field()
    cidrDescription = scrapy.Field()
    ipNum = scrapy.Field()


class AsListItem(scrapy.Item):
    ranking = scrapy.Field()
    twoCode = scrapy.Field()
    countryName = scrapy.Field()
    # as数量
    asSum = scrapy.Field()
    # as排名
    asRanking = scrapy.Field()
    # as编号
    asNum = scrapy.Field()
    # 注册机构
    registeredInstitution = scrapy.Field()
    # 分配ip数
    ipNum = scrapy.Field()
    # 登记时间
    registrationTime = scrapy.Field()
    # ip段
    ipSegment = scrapy.Field()

    countryHref = scrapy.Field()
    asNumHref = scrapy.Field()
    ipSegmentHref = scrapy.Field()


class DomainInfo(scrapy.Item):
    domainName = scrapy.Field()
    registryDomainId = scrapy.Field()
    domainStatus = scrapy.Field()
    nameServers = scrapy.Field()
    registrationDate = scrapy.Field()
    expirationDate = scrapy.Field()
    IANAID = scrapy.Field()
    addDate = scrapy.Field()
    registrarName = scrapy.Field()


class IpInfoItem(scrapy.Item):
    domainIp = scrapy.Field()
    continent = scrapy.Field()
    continentCode = scrapy.Field()
    country = scrapy.Field()
    countryCode = scrapy.Field()
    region = scrapy.Field()
    regionName = scrapy.Field()
    city = scrapy.Field()
    district = scrapy.Field()
    zip = scrapy.Field()
    latitude = scrapy.Field()
    longitude = scrapy.Field()
    timezone = scrapy.Field()
    offset = scrapy.Field()
    currency = scrapy.Field()
    isp = scrapy.Field()
    org = scrapy.Field()
    ASNUM = scrapy.Field()
    asName = scrapy.Field()
    reverse = scrapy.Field()
    mobile = scrapy.Field()
    proxy = scrapy.Field()
    hosting = scrapy.Field()
    # 格式化当前日期
    addDate = scrapy.Field()


class IpInfoOverItem(scrapy.Item):
    domainIp = scrapy.Field()


class NameServerIpInfoItem(scrapy.Item):
    nameServerName = scrapy.Field()
    nameServerIp = scrapy.Field()
    continent = scrapy.Field()
    continentCode = scrapy.Field()
    country = scrapy.Field()
    countryCode = scrapy.Field()
    region = scrapy.Field()
    regionName = scrapy.Field()
    city = scrapy.Field()
    district = scrapy.Field()
    zip = scrapy.Field()
    latitude = scrapy.Field()
    longitude = scrapy.Field()
    timezone = scrapy.Field()
    offset = scrapy.Field()
    currency = scrapy.Field()
    isp = scrapy.Field()
    org = scrapy.Field()
    ASNUM = scrapy.Field()
    asName = scrapy.Field()
    reverse = scrapy.Field()
    mobile = scrapy.Field()
    proxy = scrapy.Field()
    hosting = scrapy.Field()
    # 格式化当前日期
    addDate = scrapy.Field()


class NameServerIpInfoOverItem(scrapy.Item):
    nameServerName = scrapy.Field()


class ClassUrlItem(scrapy.Item):
    class_url = scrapy.Field()


class DomainInfo(scrapy.Item):
    domainName = scrapy.Field()
    url = scrapy.Field()
    domain = scrapy.Field()
    type = scrapy.Field()
    country = scrapy.Field()
    desc = scrapy.Field()
    keywords = scrapy.Field()


class WebsiteClassSystemItem(scrapy.Item):
    # define the fields for your item here like:
    name = scrapy.Field()
    pass


class StuffGateContentItem(scrapy.Item):
    domain_info = scrapy.Field()


class XmlDomainInfoItem(scrapy.Item):
    xml_domain_info = scrapy.Field()


class UniversityItem(scrapy.Item):
    # define the fields for your item here like:
    world_ranking = scrapy.Field()
    university_name = scrapy.Field()
    country = scrapy.Field()
    url = scrapy.Field()
    domain_name = scrapy.Field()
